package com.osi.project.common.enums;

import com.osi.start.common.business.enums.CodeValueEnum;

/**
 * 接口返回值枚举
 * <p>
 * Created by admin on 2020/1/26.
 * 100000-109999 sysauth
 * 110000-119999 sysmgt
 * 120000-129999 account
 * 130000-139999 device
 * 140000-149999 company
 */
public enum ProjectReturnCodeEnum implements CodeValueEnum {

    /** 登录失败 未关注公众号 */
    LOGIN_FAILED_WECHAT_UN_SUBSCRIBE(110001, "登录失败，未关注公众号"),

    ;
    /**
     * 业务编号
     */
    private Integer code;
    /**
     * 业务值
     */
    private String value;

    private ProjectReturnCodeEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public final String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return this.code + "=" + this.value;
    }
}
